package com.example.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
映射文件上传页面的Controller
* 
*/

@Controller

public class FileUploadPageController {

	// 访问路径为：http://ip:port/upload
    @RequestMapping(value = "/uploadfile", method = RequestMethod.GET)
    public String upload() {
        return "fileupload";
    }

    // 访问路径为：http://ip:port/upload/batch
    @RequestMapping(value = "/uploadfile/batch", method = RequestMethod.GET)
    public String batchUpload() {
        return "mutifileupload";
    }
}
